
package com.project.system.domain.entity;

import com.project.common.domain.po.DbBase;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author : [chg]
 * @className : HrApprovalProcess
 * @description : [审批流程实体类]
 * @createTime : [2025/9/12 15:46]
 */
//@Entity
@Data
//@Table(name = "hr_approval_process")
//@org.hibernate.annotations.Table(appliesTo = "hr_approval_process", comment = "审批流程")
public class HrApprovalProcess extends DbBase {

    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '审批流程ID'")
    private Long processId; // 审批流程ID

    @Column(columnDefinition = "varchar(100) DEFAULT NULL COMMENT '流程名称'")
    private String processName; // 流程名称

    @Column(columnDefinition = "varchar(50) DEFAULT NULL COMMENT '流程类型'")
    private String processType; // 流程类型

    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '提交人ID'")
    private Long submitterId; // 提交人ID

    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '当前审批人ID'")
    private Long currentApproverId; // 当前审批人ID

    @Column(columnDefinition = "varchar(20) DEFAULT NULL COMMENT '审批状态'")
    private String status; // 审批状态

    @Column(columnDefinition = "int DEFAULT NULL COMMENT '优先级'")
    private Integer priority; // 优先级

    @Column(columnDefinition = "varchar(500) DEFAULT NULL COMMENT '审批意见'")
    private String approvalComment; // 审批意见

    @Column(columnDefinition = "varchar(255) DEFAULT NULL COMMENT '业务关联键'")
    private String businessKey; // 业务关联键

    @Column(columnDefinition = "varchar(100) DEFAULT NULL COMMENT '流程定义ID'")
    private String processDefinitionId; // 流程定义ID
}